<?php

class ProductEnum
{

    #管理员权限
    const PRODUCT_EXAMINE_PASS = 1;   //审核通过
    const PRODUCT_EXAMINE_ING  = 2;   //审核中
    const PRODUCT_EXAMINE_NULL = 0;   //审核未通过


    public static $examine_role = [
        self::PRODUCT_EXAMINE_PASS => '审核通过',
        self::PRODUCT_EXAMINE_ING => '审核中',
        self::PRODUCT_EXAMINE_NULL => '审核未通过',
    ];

    #自营渠道
    const SELF_SUPPORT_PRODUCT_FOREST           =  'self_support_forest';      //海外林场
    const SELF_SUPPORT_PRODUCT_CUSTOMIZE        =  'self_support_customize';   //木制品定制
    const SELF_SUPPORT_PRODUCT_PROMOTE          =  'self_support_promote';     //国内原料特惠
    const SELF_SUPPORT_PRODUCT_MADE             =  'self_support_made';        //成品采购

    const PRODUCT_INDEX_YES                     = 1;   //APP产品为yes


    const PRODUCT_LEVEL_ONE                         = 1;   //一级
    const PRODUCT_LEVEL_TWO                         = 2;   //二级
    const PRODUCT_LEVEL_THREE                       = 3;   //三级
    const PRODUCT_LEVEL_FOUR                        = 4;   //四级

    const CHANNEL_OVERSEAS_FOREST                   = 100;   //海外林场
    const CHANNEL_DOMETIC_                          = 102;   //国内原料特惠

    const CUSTOMIZE                                 = 101;     //木制品定制
    const PURCHASE                                  = 103;     //成品采购

    const SUPPORT_SELF                              = 1;     //直营
    const SUPPORT_OTHER                             = 0;     //非直营

    const DOMESTIC_AREA                             = 104;     //国内
    const ABROAD_AREA                               = 105;     //国外

    const ORDER_JINGDONG_PAYMENT                    = "京东支付";
    const ORDER_PRODUCT_PAYMENT                     = "货到付款";

    const ORDER_INVOICE_INFO                        = "纸质发票";

    public static $product_types = [
        self::PRODUCT_INDEX_YES                  =>  '是'
    ];

    public static $product_level = [
        self::PRODUCT_LEVEL_ONE                    =>  '一级',
        self::PRODUCT_LEVEL_TWO                    =>  '二级',
        self::PRODUCT_LEVEL_THREE                  =>  '三级',
        self::PRODUCT_LEVEL_FOUR                   =>  '四级',
    ];

    public static $product_channel = [
        self:: CHANNEL_OVERSEAS_FOREST             =>  '海外林场',
        self:: CHANNEL_DOMETIC_                    =>  '国内原料特惠',
    ];

    public static $support = [
        self:: SUPPORT_SELF                         =>  '自营',
        self:: SUPPORT_OTHER                        =>  '非自营',
    ];

    public static $area = [
        self:: DOMESTIC_AREA                        =>  '国内',
        self:: ABROAD_AREA                          =>  '国外',
    ];

    public static $channel  =   [
        self::SELF_SUPPORT_PRODUCT_FOREST       =>   [
            'channel_id'    =>  1,
            'channel_name'  =>  '海外林场'
        ],
        self::SELF_SUPPORT_PRODUCT_CUSTOMIZE    =>  [
            'channel_id'    =>  2,
            'channel_name'  =>  '木制品定制'
        ],
        self::SELF_SUPPORT_PRODUCT_PROMOTE      =>   [
            'channel_id'    =>  3,
            'channel_name'  =>  '国内原料特惠'
        ],
        self::SELF_SUPPORT_PRODUCT_MADE         =>   [
            'channel_id'    =>  4,
            'channel_name'  =>  '国内原料特惠'
        ],

    ];
}